package org.example.order.service;

import cn.lingyangwl.framework.core.response.Resp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * 账户
 * @author shenguangyang
 */
@FeignClient(value = "seata-account-service")
public interface AccountService {
    @PostMapping("/account/decrease")
    Resp<?> decrease(@RequestParam(value = "userId") Long userId , @RequestParam(value = "money") BigDecimal money);
}
